import request from '@/utils/request'
import { IRoleAllInfo, IRolePagesInfo, IRoleQueryParam } from '../types'

export const getRoleAll = () => {
  return request<IRoleAllInfo>({
    method: 'GET',
    url: '/boss/role/all'
  })
}

export const getRolePages = (roleQueryParam:IRoleQueryParam) => {
  return request<IRolePagesInfo>({
    method: 'POST',
    url: '/boss/role/getRolePages',
    data: roleQueryParam
  })
}
